package com.the4man.cnbdw.service.impl;

import com.the4man.cnbdw.dao.DeckInfoMapper;
import com.the4man.cnbdw.service.AbstractService;
import com.the4man.cnbdw.service.DeckInfoService;
import com.the4man.cnbdw.utils.SelectModel;
import com.the4man.framework.model.DeckInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lenovo on 2017/12/12.
 */
@Service("deckInfoService")
public class DeckInfoServiceImpl extends AbstractService<DeckInfo> implements DeckInfoService {
    @Autowired
    DeckInfoMapper deckInfoMapper;

    public DeckInfoServiceImpl() {
    }

    public List<SelectModel> getDeckInfoSelectData() {
        return this.deckInfoMapper.getDeckInfoSelectData();
    }

    public DeckInfo selectByName(String name) {
        return this.deckInfoMapper.selectByName(name);
    }

    public DeckInfo selectMByName(String name, String id) {
        return this.deckInfoMapper.selectMByName(name, id);
    }
}
